<form action="{:sysuri()}" data-table-id="FormTable" class="layui-form layui-card" data-auto="true" method="post" style="height:500px;overflow:scroll;">
    <div class="layui-card-body padding-left-40">

        <label class="layui-form-item relative block">
            <span class="help-label"><b>商品品牌名称</b>Brand Name</span>
            <input class="layui-input" name="name" placeholder="请输入品牌名称" required value='{$vo.name|default=""}'>
            <span class="help-block"><b>必填，</b>请填写商品品牌名称，建议字符不要太长，一般 4-6 个汉字</span>
        </label>
        <label class="layui-form-item relative block">
            <span class="help-label"><b>首页显示</b>Show Home</span>
            <br/>
            <select class='layui-select' name='is_homeshow' lay-search>
                {foreach ['不显示','显示'] as $sk=>$sv}
                {if $addtype eq 1}
                    <option value='{$sk}'>{$sv}</option>
                {else/}
                    {notempty name='vo'}
                        {if $vo.is_homeshow eq $sk}
                            <option selected value='{$sk}'>{$sv}</option>
                        {else/}
                            <option value='{$sk}'>{$sv}</option>
                        {/if}
                    {else/}
                        <option value='{$sk}'>{$sv}</option>
                    {/notempty}
                {/if}
                {/foreach}
            </select>
            <span class="help-block">选中后会在首页显示</span>
        </label>

        <div class="layui-form-item relative block">
            <span class="help-label"><b>商品品牌图标</b>Brand Cover</span>
            <label class="relative block">
                <input class="layui-input think-bg-gray" readonly name="cover_icon" placeholder="请上传商品品牌图标" value='{$vo.cover_icon|default=""}'>
                <a class="input-right-icon layui-icon layui-icon-upload" data-field="cover_icon" data-file data-type="png,jpg,gif"></a>
            </label>
            <span class="help-block">请上传商品品牌图标，需要是 http 可访问的图片资源链接<b class="color-red">图片尺寸：100px * 100px</b></span>
        </div>
        <div class="layui-form-item relative block">
            <span class="help-label"><b>商品品牌宣传图</b>Brand Img</span>
            <label class="relative block">
                <input class="layui-input think-bg-gray" readonly name="cover" placeholder="请上传商品品牌图标" value='{$vo.cover|default=""}'>
                <a class="input-right-icon layui-icon layui-icon-upload" data-field="cover" data-file data-type="png,jpg,gif"></a>
            </label>
            <span class="help-block">请上传商品品牌宣传图片，需要是 http 可访问的图片资源链接 <b class="color-red">图片尺寸：980px * 250px</b></span>
        </div>

        <label class="layui-form-item relative block">
            <span class="color-green font-w7">商品品牌描述</span>
            <span class="color-desc margin-left-5">Brand Remark</span>
            <textarea class="layui-textarea" name="remark" placeholder="请输入品牌描述">{$vo.remark|default=''}</textarea>
        </label>
    </div>

    <div class="hr-line-dashed"></div>
    {notempty name='vo.id'}<input name='id' type='hidden' value='{$vo.id}'>{/notempty}
    <div class="layui-form-item text-center">
        <button class="layui-btn" type='submit'>保存数据</button>
        <button class="layui-btn layui-btn-danger" data-close type='button' data-confirm="确定要取消编辑吗？">取消编辑</button>
    </div>

</form>
